<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>loading</title>
    <style type="text/css">
        
        @keyframes loading {
            from{
                transform: scale(1,1);
            }
            to{
                transform: scale(1,0.4);
            }
        }
        
        .con {
            width: 300px;
            height: 158px;
            border: 1px solid #000;
            margin: 150px auto;
        }
        .con div {
            width: 30px;
            height: 100px;
            float: left;
            background-color: #6DDCBD;
            margin: 15px;
            border-radius: 50px;

            animation: loading 500ms infinite alternate;
        }
        .con p{
            text-align: center;
        }
        .con div:nth-child(1) {
            background-color: dimgray;
        }
        .con div:nth-child(2) {
            background-color: darkcyan;
            animation-delay: 100ms;
        }
        .con div:nth-child(3) {
            background-color: gold;
            animation-delay: 200ms;
        }
        .con div:nth-child(4) {
            background-color: bisque;
            animation-delay: 300ms;
        }
        .con div:nth-child(5) {
            background-color: #6DDCBD;
            animation-delay: 400ms;
        }
    </style>
</head>
<body>
    <div class="con">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <p>loading...</p>
    </div>
</body>
</html>